<div class="widget grid12">
    <div class="whead"><h6>ORDEN: <?php echo $datosOrden['Ordene']['nombre']; ?></h6><div class="clear"></div></div>
    <?php echo $this->Form->create('DocumentosOrdene', array('id' => "validate")); ?>
    <div id="sheepItForm">
        <!-- Form template-->
        <div id="sheepItForm_template">
            <div class="formRow">
                <div class="grid3"><label><span id="sheepItForm_label"></span>.- Documento :</label></div>
                <div class="grid3">
                    <?php echo $this->Form->hidden('#index#.ordene_id', array('value' => $idOrden)); ?>
                    <?php echo $this->Form->select('#index#.documento_id', $dcd, array('class' => 'micombocrt')); ?>
                </div> 
                <div class="clear"></div>   
            </div>
            <div class="formRow">
                <div class="grid3"><label>Original :</label></div>
                <div class="grid3">            
                    <?php echo $this->Form->checkbox("#index#.original", array('value' => '1', 'hiddenField' => '0')); ?>
                </div>       
                <div class="clear"></div>
                <a id="sheepItForm_remove_current" style="float: left">
                    X<img class="delete" src="/images/cross.png" width="16" height="16" border="0">
                </a>                
            </div>

            <div class="formRow">
                <div class="grid3"><label>Volumen :</label></div>
                <div class="grid3">
                    <?php echo $this->Form->text('#index#.volumen', array('placeholder' => 'Inserte Volumen', "class" => "validate[required]")); ?>                   
                </div>

                <div class="clear"></div>                 
            </div>

        </div>   
        <!-- /Form template-->                  
        <!-- No forms template -->
        <div id="sheepItForm_noforms_template">Ningun Tags</div>
        <!-- /No forms template-->

        <!-- Controls -->
        <div id="sheepItForm_controls">
            <div id="sheepItForm_add"><a class="buttonS bGreen"><span>(+)Mas Documentos</span></a></div>
            <p></p>
            <div id="sheepItForm_remove_last"><a class="buttonS bRed"><span>(-)Quitar</span></a></div>
            <div id="sheepItForm_remove_all"><a class="buttonS bRed"><span>(-)Quitar Todos</span></a></div>
            <div id="sheepItForm_add_n">
                <input id="sheepItForm_add_n_input" type="text" size="4" style="border: 1px solid #006;"/>
                <p></p>
                <div id="sheepItForm_add_n_button"><a class="buttonS bGold"><span>Anadir</span></a></div></div>
        </div>

        <!-- /Controls -->

    </div>
    <!-- /sheepIt Form -->          

    <div class="clear"></div>


</div>
</div>
<script>
    $(document).ready(function() {
                        
        var sheepItForm = $('#sheepItForm').sheepIt({
            separator: '',
            allowRemoveLast: true,
            allowRemoveCurrent: true,
            allowRemoveAll: true,
            allowAdd: true,
            allowAddN: true,
            maxFormsCount: 150,
            minFormsCount: 1,
            iniFormsCount: 1,
            continuousIndex: true
        });              
            
    } );                 
    
</script>
<p></p>
<div class="actions-right">        
    <?php
    $options = array('label' => 'Guardar Datos', 'class' => 'buttonS bGreen', 'id' => 'btEnvia'
    );
    echo $this->Form->end($options);
    ?> 
    <p></p>
    <?php echo $this->Html->link("Volver &raquo;", array('controller' => 'Ordenes', 'action' => 'index'), array('class' => 'buttonS bLightBlue', 'escape' => FALSE)); ?>
</div>
